﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ComplaintMetadata))]//使用ComplaintMetadata对Complaint进行数据验证
    public partial class Complaint : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class ComplaintMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "RowGuid", Order = 1)]
			public object RowGuid { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "投诉时间", Order = 2)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "CreatePerson", Order = 3)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object CreatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "楼层", Order = 4)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Floor { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "工作地点", Order = 5)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object OfficeSpace { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "描述", Order = 6)]
			[StringLength(16, ErrorMessage = "长度不可超过16")]
			public object Describe { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "投诉人名称", Order = 7)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object ComplainantName { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "投诉人电话", Order = 8)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object ComplainantTel { get; set; }

            [ScaffoldColumn(true)]
            [Display(Name = "被投诉人姓名", Order = 8)]
            [StringLength(50, ErrorMessage = "长度不可超过50")]
            public object Person { get; set; }


    }


}

